package day7;

public class Crocodile extends Pet {
    public Crocodile(String name, int health) {
        super(name, health);
    }

    public void print() {
        System.out.println("鳄鱼" + super.getName() + "非常凶猛！");
        super.introduce();
    }

    public void climb() {
        System.out.println("鳄鱼" + this.getName() + "在地上爬行！");
    }
}